<%@ include file="/includes/includes.jsp" %>
<div class="menu-wrapper">
    <ul>
        <c:forEach items="${pageList}" var="modulePage" varStatus="modulePageindex">
            <c:set var="cssClass"
                   value="${modulePage.code eq currentView.tab ? 'page-menu-active': ''}"/>
            <c:set var="pageName" value="${modulePage.name}"/>

            <li title="${pageName}" class="${cssClass}">
                <c:choose>
                    <c:when test="${cssClass != ''}">
                        <div>
                            <span class="tab">
                                <span>${pageName}</span>
                            </span>
                        </div>
                    </c:when>
                    <c:otherwise>
                        <c:url value="/modules/index.do" var="url">
                            <c:param name="module" value="${currentView.module}"/>
                            <c:param name="tab" value="${modulePage.code}"/>
                        </c:url>
                        <a href="<c:out value='${url}'/>">
                            <div>
                            <span class="tab">
                                <span>${pageName}</span>
                            </span>
                            </div>
                        </a>
                    </c:otherwise>
                </c:choose>
            </li>
        </c:forEach>
    </ul>
</div>